package com.googlecode.allinclusive.fw.core.exception;

import com.googlecode.allinclusive.fw.core.message.MessageUtils;

/**
 * Business Logic异常类
 * 
 * @author <a href="mailto:summerxyg@gmail.com">xiayg</a>
 */
@SuppressWarnings("serial")
public class BizLogicException extends BaseException {

	public BizLogicException() {
		super();
	}
	
    public BizLogicException(Throwable cause) {
        super(cause);
    }
    
	public BizLogicException(String messageId) {
		this(messageId, true);
	}
	
	public BizLogicException(String messageId, boolean resource) {
		super(resource ? MessageUtils.getMessage(messageId) : messageId);
	}
	
    public BizLogicException(String messageId, Throwable cause) {
    	this(messageId, cause, true);
    }
    
    public BizLogicException(String messageId, Throwable cause, boolean resource) {
    	super(resource ? MessageUtils.getMessage(messageId) : messageId, cause);
    }
}
